<?
//获取nav-itemed，控制侧边栏展开

if($_REQUEST['nav-itemed']=="index")
{$navi_index="layui-this";}

if($_REQUEST['nav-itemed']=="config")
{$navi_config="layui-this";}

if($_REQUEST['nav-itemed']=="user")
{$navi_user="layui-this";}


?>



<!---->
<!--<div style="width:60px; height: 60px; background-color: #ff9900; position: absolute; z-index: 999999">这个是留给logo做的块-->
<!--</div>-->



<ul class="layui-nav"  >






<!--<div class="search-set-content">-->
<!--            <form id="search_form" method="post" action="--><?//echo $domain?><!--/controlbase/search/detail-list.php" name="search_form">-->
<!--                <input name="keywords" type="text" class="search-input">-->
<!--                <input name="search-btn" type="submit" value="" class="search-sub">-->
<!--                <input name="search-plate" type="hidden" value="--><?//echo $system_part?><!--">-->
<!--            </form>-->
<!--        </div>-->




  <li class="layui-nav-item <?echo $navi_index ?>" ><a href="<?echo $domain?>/controlbase/index.php?nav-itemed=index"><i class="layui-icon">&#xe60f;</i>系统首页</a></li>
<!--  <li class="layui-nav-item  --><?//echo $navi_config ?><!--"><a href="--><?//echo $domain?><!--/controlbase/config.php?nav-itemed=config"><i class="layui-icon">&#xe614;</i>系统设置</a></li> -->
<!--  <li class="layui-nav-item">-->
<!--    <a href="javascript:;"><i class="layui-icon">&#xe607;</i>帮助中心</a>-->
<!--    <dl class="layui-nav-child"> <!-- 二级菜单 -->-->
<!--      <dd><a href="">常见问题</a></dd>-->
<!--      <dd><a href="">在线客服</a></dd>-->
<!--      <dd><a href="">信息反馈</a></dd>-->
<!--    </dl>-->
<!--  </li>-->










<?
$userdepartment=select_one_line_all_items($table_Prefix."department","nid='".$_SESSION['departmentid']."'");
?>



	<li class="layui-nav-item <?echo $navi_user ?>"><a href="javascript:;"><i class="layui-icon">&#xe612;</i><?echo $_SESSION['username'];?> [ <?echo $userdepartment['name'] ?> ] </a>
		<dl class="layui-nav-child"> <!-- 二级菜单 -->
      <dd><a href="<?echo $domain?>/controlbase/user/detail-reset-pw.php?nav-itemed=user&nid=<?echo $_SESSION['nid'];?>"> 用户中心</a></dd>
      <dd><a href="<? echo $domain ?>/controlbase/loginout.php"> 注销登录</a></dd> 
    </dl>
	</li>









    <style>
        .topbar-inbox-list dd i {    border-radius: 15px;
            background: #ff9900;
            padding: 2px;
            margin-right: -12px!important;
            margin-top: 2px;
            font-style: normal;
            width: 25px;
            height: 25px;
            display: block;
            float: right;
            line-height: 28px;
            text-align: center;
            color: #ffffff;}
    </style>

    <li style="display: none" class="layui-nav-item"><a href="javascript:;"><i class="layui-icon" <? if(count($applymodify_member)>0){echo "style='color:#ff9900'";} ?>>&#xe611;</i>收件箱</a>
        <dl class="layui-nav-child topbar-inbox-list" style="width: 300px; right: 0!important;left: inherit!important;">
            <dd><a href="<? echo $domain ?>/controlbase/member/detail-list.php?nav-itemed=member&select_apply=applystatus">申请修改学员信息<i><?echo count($applymodify_member) ?></i></a></dd>

            <dd><a href="<? echo $domain ?>/controlbase/member/detail-list.php?nav-itemed=member&select_paystatus=欠费">欠费学员     <i><?echo count($unpay_member) ?></i></a></dd>


            <dd><a href="<? echo $domain ?>/controlbase/member/detail-list.php?nav-itemed=member&select_expire=即将到期">到期学员     <i><?echo count($student_expire_list) ?></i></a></dd>


            <dd><a href="">库存不足(添加中)     <i><?echo count($material_lack) ?></i></a></dd>


            <dd>




                <a href="<? echo $domain ?>/controlbase/equipment/detail-list.php?nav-itemed=equipment&select_endday=<?echo $alert_date?>&select_maintain=jishen"">季审即将过期     <i><?echo count($equipment_jishen) ?></i></a></dd>

            <dd><a href="<? echo $domain ?>/controlbase/equipment/detail-list.php?nav-itemed=equipment&select_endday=<?echo $alert_date?>&select_maintain=nianshen"">年审即将过期     <i><?echo count($equipment_nianshen) ?></i></a></dd>

            <dd><a href="<? echo $domain ?>/controlbase/equipment/detail-list.php?nav-itemed=equipment&select_endday=<?echo $alert_date?>&select_maintain=qiangbao"">强保即将过期     <i><?echo count($equipment_qiangbao) ?></i></a></dd>

            <dd><a href="<? echo $domain ?>/controlbase/equipment/detail-list.php?nav-itemed=equipment&select_endday=<?echo $alert_date?>&select_maintain=quanbao"">全保即将过期     <i><?echo count($equipment_quanbao) ?></i></a></dd>




<dd><a href="<? echo $domain ?>/controlbase/equipment/detail-list.php?nav-itemed=equipment&select_endday=<?echo $alert_date?>&select_maintain=quanbao"">全保即将过期     <i><?echo count($equipment_quanbao) ?></i></a></dd>






<!--            <dd><a href="">学员身份证即将过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练身份证即将过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练驾驶证即将过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">维修中车辆<i>--><?//echo count($repair_equipment) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练证即将过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">运输证即将过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练车年审过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练车二级维护过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练车技术等级评定过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练车交强险过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">教练车商业险过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
<!--            <dd><a href="">车船税过期<i>--><?//echo count($unpay_member) ?><!--</i></a></dd>-->
        </dl>
    </li>







    <!--	<li class="layui-nav-item"><a href="/"><i class="layui-icon">&#xe60a;</i>前台首页</a>-->
<!--<!--	<dl class="layui-nav-child"> <!-- 二级菜单 -->-->-->
<!--<!--      <dd><a href="">访问我们</a></dd>-->-->
<!--<!--      <dd><a href="">微信公众号</a></dd>-->-->
<!--<!--      <dd><a href="">产品目录/画册</a></dd>-->-->
<!--<!--      <dd><a href="">ERP系统</a></dd>-->-->
<!--<!--    </dl>-->-->
<!--	</li>-->
</ul>



<!--
<div id="topbarmid">
    <ul>
        <li>
            <a href="<? echo $site_domin ?>" class="home_icon" target="_blank" title="打开网站前台首页">网站</a>
        </li>
        <li>
            <a href="<? echo $site_admin_url ?>/site/edit.php" class="setup_icon" title="设置网站域名、地址、描述、关键词等必要信息，一般由圆点设计预设，如擅自修改，可能出现网站显示不正常等问题">设置</a>
        </li>
        <li>
            <a href="<? echo $site_admin_url ?>/loginout.php" class="logout_icon" title="退出登陆，重新输入帐密登陆网站管理系统">退出</a>
        </li>
    </ul>
    <div class="search-set">-->
<!--        <h2>--><?//echo $_SESSION['username']?><!--,欢迎您</h2>-->
<!--<div class="search-set-content">
            <form id="search_form" method="post" action="<? echo $site_admin_url ?>/search/detail-list.php" name="search_form">
                <input name="keywords" type="text" class="search-input">
                <input name="search-product" type="submit" value="" class="search-sub">
            </form>
        </div>
    </div>
</div>-->